import { RouteRecordRaw } from 'vue-router';

export default {
    path: '/topic',
    name: 'topic',
    redirect: '/topic',
    meta: {
        title: '习题系统',
        icon: 'EditPen',
        sort: 5
    },
    children: [
        {
            path: '/topic/randomPractice',
            name: 'randomPractice',
            component: () => import('@/components/topic/RandomPractice.vue'),
            meta: {
                title: '随机练习'
            }
        },
        {
            path: '/topic/topicManage',
            name: 'topicManage',
            component: () => import('@/components/topic/TopicManage.vue'),
            meta: {
                title: '习题管理'
            }
        },
        {
            path: '/topic/topicTypeManage',
            name: 'topicManageType',
            component: () => import('@/components/topic/TopicTypeManage.vue'),
            meta: {
                title: '习题类型管理'
            }
        },
        {
            path: '/label/labelManage',
            name: 'labelManage',
            component: () => import('@/components/topic/LabelManage.vue'),
            meta: {
                title: '标签管理'
            }
        }
    ]
} as RouteRecordRaw;